<h1>Templates</h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Path</th>
      <th>Format</th>
      <th>Locale</th>
      <th>Handler</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @templates.each do |template| %>
      <tr>
        <td><%= template.path %></td>
        <td><%= template.format %></td>
        <td><%= template.locale %></td>
        <td><%= template.handler %></td>
        <td>
          <%= link_to 'Edit', kuztuscms.edit_template_path(template), :class => 'btn btn-mini' %>
          <%= link_to 'Destroy', kuztuscms.template_path(template), :method => :delete, :confirm => 'Are you sure?', :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to 'New', kuztuscms.new_template_path, :class => 'btn btn-primary' %>
